<!DOCTYPE html>
<script src="../../resources/js-test.js"></script>
<script>
onload = function() {
  document.body.offsetTop;
  var target = document.getElementById('target');
  target.style.color = 'green';
  if (window.internals) {
    shouldBe('internals.updateStyleAndReturnAffectedElementCount()', '2');
    shouldBe('internals.needsLayoutCount()', '0');
  }
}
</script>
Should not layout when list color changes.
<ul id="target">
  <li>List item</li>
</ul>
